package cz.matasek.dbLogger;

import java.nio.charset.Charset;

/**
 * Container of all global constants.
 *
 * @author Luboš Matásek
 */
public class Constant {

    /**
     * The extension of SQL scripts.
     */
    public static final String SQL_FILE_EXTENSION = ".sql";
    /**
     * Encoding of SQL scripts.
     */
    public static final Charset SQL_FILE_CHARSET = Charset.forName("UTF-8");
    /**
     * Suffixes of the history column names.
     */
    public static final String[] HISTORY_COLUMN_NAMES = {"id", "created"};
    /**
     * Comma separator.
     */
    public static final String COMMA = ",";
    /**
     * XML element starting tag.
     */
    public static final String XML_ELEMENT_START_TAG = "<";
    /**
     * XML element ending tag.
     */
    public static final String XML_ELEMENT_END_TAG = ">";
    /**
     * Quote.
     */
    public static final String QUOTE = "'";
    /**
     * Default Database Logger XML namespace.
     */
    public static final String DB_LOGGER_NAMESPACE =
            "http://www.matasek.net/DatabaseLogger";
    /**
     * XML Schema namespace.
     */
    public static final String XML_SCHEMA_NAMESPACE =
            "http://www.w3.org/2001/XMLSchema-instance";
}
